﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using SmartSiteManagementSystem.Models.ProjectManage;

namespace SmartSiteManagementSystem.IRepository.ProjectManage
{
    public interface IDayProjectTypeInfoRepository
    {
        /// <summary>
        /// 取得记录数
        /// </summary>
        /// <param name="param">可选参数为：</param>
        /// <returns></returns>
        int GetCount(Hashtable param);

        /// <summary>
        /// 提取数据
        /// </summary>
        /// <param name="param">可选参数为：</param>
        /// <param name="orderBy">排序方式</param>
        /// <param name="first">起始记录：从0开始</param>
        /// <param name="rows">提取的条数</param>
        /// <returns></returns>
        IList<DayProjectTypeInfo> GetList(Hashtable param, string orderBy, int first, int rows);

        /// <summary>
        /// 提取数据
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        DayProjectTypeInfo Get(Hashtable param);

        /// <summary>
        /// 插入数据
        /// </summary>
        /// <param name="obj">对象</param>
        /// <returns>返回：该条数据的主键Id</returns>
        int Insert(DayProjectTypeInfo obj);

        /// <summary>
        /// 更新数据
        /// </summary>
        /// <param name="obj"></param>
        /// <returns>返回：ture 成功，false 失败</returns>
        bool Update(DayProjectTypeInfo obj);

        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="param"></param>
        /// <returns>返回：ture 成功，false 失败</returns>
        bool Delete(Hashtable param);


    }
}
